﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WoWRealmlistChanger.Controller;

namespace WoWRealmlistChanger
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        WowController con;
        
        Properties.Settings m_Settings;

        public MainWindow()
        {
            InitializeComponent();

            con = new WowController();

            DataContext = con.ViewData;

            m_Settings = Properties.Settings.Default;
        }

        private void m_BtnSelectBc_Click(object sender, RoutedEventArgs e)
        {
            con.ChooseTbcFolder();
        }

        private void StarterWindow_Closed(object sender, EventArgs e)
        {
            con.PushModelToConfig();
        }

        private void m_BtnAddBc_Click(object sender, RoutedEventArgs e)
        {
            con.AddToBcList();
        }

        private void m_BtnDeleteBc_Click(object sender, RoutedEventArgs e)
        {
            con.RemoveFromBcList();
        }

        private void m_BtnAddWotlk_Click(object sender, RoutedEventArgs e)
        {
            con.AddToWotlkList();
        }

        private void m_BtnDeleteWotlk_Click(object sender, RoutedEventArgs e)
        {
            con.RemoveFromWotlkList();
        }

        private void m_ResetCfg_Click(object sender, RoutedEventArgs e)
        {
            con.ResetConfig();
        }

        private void m_BtnStartBc_Click(object sender, RoutedEventArgs e)
        {
            con.StartTbc();
        }

        private void m_BtnStartWotlk_Click(object sender, RoutedEventArgs e)
        {
            con.StartWotlk();
        }

        private void m_BtnSelectWotlk_Click(object sender, RoutedEventArgs e)
        {
            con.ChooseWotlkFolder();
        }
        
    }
}
